lvm2: disable readline and interactive shell
authorMaxim Storchak <[email protected]>
Thu, 25 Sep 2025 09:38:21 +0000 (12:38 +0300)
committerDaniel Golle <[email protected]>
Thu, 25 Sep 2025 11:54:52 +0000 (12:54 +0100)
commit2a1e7734ed055a3107d673f3d147c0031ded532f
treedb1951c8a53ff7addb75fa3cce9247c4bf0eb0aa
parentf576054742d6a68cea11c963de9b5651dd4b2a53
lvm2: disable readline and interactive shell

remove support of interactive mode in /sbin/lvm

Benefits:
- drop dependency on readline and ncurses (-700kb if there are no other users of these libs)
- shrink the lvm binary itself (-260k)

Drawback:
- lose interactive shell:
lvm> vgchange -ay
  4 logical volume(s) in volume group "vg0" now active
lvm>

"lvm <subcommand> --params" and "<subcommand> --params" entry points are still available

Signed-off-by: Maxim Storchak <[email protected]>
utils/lvm2/Makefile